//
//  DevicesCurrentTemperature-EGS-G2.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/4/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "DevicesCurrentTemperature-EGS-G2.h"

@implementation DevicesCurrentTemperature_EGS_G2

- (NSString*)freezerId{
    
    return self.freezerIdStr;
}

- (NSString*)uid{
    
    return self.uidStr;
}

- (NSString*)deviceName{
    
    return self.deviceNameStr;
}

- (NSString*)companyId{
    
    return self.companyIdStr;
}

- (NSString*)measureStatus{
    
    return self.measureStatusStr;
}

- (NSString*)measureName{
    
    return self.measureNameStr;
}

- (NSString*)measureDescription{
    
    return self.measureDescriptionStr;
}

- (NSString*)measureSeverity{
    
    return self.measureSeverityStr;
}

- (NSString*)healthStatusCode{
    
    return self.healthStatusCodeStr;
}

- (NSString*)healthStatusText{
    
    return self.healthStatusTextStr;
}

- (NSString*)healthStatusColor{
    
    return self.healthStatusColorStr;
}

- (NSString*)connectionState{
    
    return self.connectionStateStr;
}

- (NSString*)inflowsensor{

    return _inFlowSensorStr;
}

- (NSString*)downflowSensor{

    return _downFlowSensorStr;
}

-(NSString *)deviceType{

    return self.deviceTypeStr;
}

+ (DevicesCurrentTemperature_EGS_G2*)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andInFlowSensor:(NSString*)inFlowSensor andDownFlowSensor:(NSString*)downFlowSensor andDeviceType:(NSString *)deviceType{
    
    DevicesCurrentTemperature_EGS_G2 *devicesEGSG2 = [DevicesCurrentTemperature_EGS_G2
                                                                   devicesWithFreezerID:freezerID
                                                                   andUID:uid
                                                                   andDeviceName:deviceName
                                                                   andCompanyId:companyID
                                                                   andMeasureStatus:measureStatus
                                                                   andMeasureName:measureName
                                                                   andMeasureDescription:measureDescription
                                                                   andMeasureSeverity:measureSeverity
                                                                   andHealthStatusCode:healthStatusCode
                                                                   andHealthStatusText:healthStatustext
                                                                   andHealthStatusColor:healthStatusColor
                                                                   andConnectionState:connectionState andDeviceType:deviceType];
    

    devicesEGSG2.inFlowSensorStr = inFlowSensor;
    devicesEGSG2.downFlowSensorStr = downFlowSensor;
   // devicesEGSG2.deviceTypeStr = deviceType;
    
    return devicesEGSG2;

}


- (NSString*)occuranceTime{

    return _occuranceTimeStr;
}

- (NSString*)lowInflowLimit{

    return  _lowInFlowLimitStr;
}

- (NSString*)highDownflowLimit{

    return _highDownFlowLimitStr;
}

- (NSString*)lowDownflowLimit{

    return _lowDownFlowLimitStr;
}

- (NSString*)highTemperatureLimit{

    return _highTemperatureLimitStr;
}

- (NSString*)lowTemperatureLimit{

    return _lowTemperatureLimitStr;
}

- (NSString*)highDcVoltageLimit{

    return _highDcVoltageLimitStr;
}
- (NSString*)lowDcVoltageLimit{

    return _lowDcVoltageLimitStr;
}

- (NSString*)temperatureSensor{

    return _temperatureSensorStr;
}

- (NSString*)dcVoltage{

    return _dcVoltageStr;
}

+ (DevicesCurrentTemperature_EGS_G2*)devicesWithFreezerID:(NSString*)freezerID andInFlowSensor:(NSString*)inFlowSensor andDownFlowSensor:(NSString*)downFlowSensor andDeviceType:(NSString*)deviceType andOccuranceTime:(NSString*)occuranceTime andLowInFlowLimit:(NSString*)lowInFlowLimit andHighDownFlowLimit:(NSString*)highDownFlowLimit andLowDownFlowLimit:(NSString*)lowDownFlowLimit andHighTemperatureLimit:(NSString*)highTemperatureLimit andLowTemperatureLimit:(NSString*)lowTemperatureLimit andHighDcVoltageLimit:(NSString*)highDcVoltageLimit andlowDcVoltageLimit:(NSString*)lowDcVoltageLimit andTemperatureSensor:(NSString*)temperatureSensor andDcVoltage:(NSString*)dcVoltage{


    DevicesCurrentTemperature_EGS_G2 *devicesEGSG2 = [DevicesCurrentTemperature_EGS_G2 devicesWithFreezerID:freezerID andDeviceType:deviceType];
    
    devicesEGSG2.inFlowSensorStr = inFlowSensor;
    devicesEGSG2.downFlowSensorStr = downFlowSensor;
    //devicesEGSG2.deviceTypeStr = deviceType;
    devicesEGSG2.occuranceTimeStr = occuranceTime;
    devicesEGSG2.lowInFlowLimitStr = lowInFlowLimit;
    devicesEGSG2.highDownFlowLimitStr = highDownFlowLimit;
    devicesEGSG2.lowDownFlowLimitStr = lowDownFlowLimit;
    devicesEGSG2.highTemperatureLimitStr = highTemperatureLimit;
    devicesEGSG2.lowTemperatureLimitStr = lowTemperatureLimit;
    devicesEGSG2.highDcVoltageLimitStr = highDcVoltageLimit;
    devicesEGSG2.lowDcVoltageLimitStr = lowDcVoltageLimit;
    devicesEGSG2.temperatureSensorStr = temperatureSensor;
    devicesEGSG2.dcVoltageStr = dcVoltage;
    
    return devicesEGSG2;
}

//

- (NSString*)occuranceTimeAlarm{
    
    return _occuranceTimeAlarmStr;
}
- (NSString*)alarmCodeAlarm{
    
    return _alarmCodeAlarmStr;
}

- (NSString*)alarmTextAlarm{
    
    return _alarmTextAlarmStr;
}

- (NSString*)measureStatusAlarm{
    
    return _measureStatusAlarmStr;
}

- (NSString*)measureNameAlarm{
    
    return _measureNameAlarmStr;
}

- (NSString*)measureDescriptionAlarm{
    
    return _measureDescriptionAlarmStr;
}

- (NSString*)measureSeverityAlarm{
    
    return _measureSeverityAlarmStr;
}

- (NSString*)cronStatusAlarm{
    
    return _cronStatusAlarmStr;
}

+ (DevicesCurrentTemperature_EGS_G2*)alarmDevicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperaturesSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andAlarmCode:(NSString*)alarmCode andAlarmText:(NSString*)alarmText andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andCronStatus:(NSString*)cronStatus{
    
    DevicesCurrentTemperature_EGS_G2 *deviceEGSG2 = [DevicesCurrentTemperature_EGS_G2
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceEGSG2.occuranceTimeAlarmStr = occuranceTime;
    deviceEGSG2.alarmCodeAlarmStr = alarmCode;
    deviceEGSG2.alarmTextAlarmStr = alarmText;
    deviceEGSG2.measureStatusAlarmStr = measureStatus;
    deviceEGSG2.measureNameAlarmStr = measureName;
    deviceEGSG2.measureDescriptionAlarmStr = measureDescription;
    deviceEGSG2.measureSeverityAlarmStr = measureSeverity;
    deviceEGSG2.cronStatusAlarmStr = cronStatus;
    
    return deviceEGSG2;
}


- (NSString*)occuranceTimeEvent{
    
    return _occuranceTimeEventStr;
}

- (NSString*)eventCode{
    
    return _eventCodeStr;
}

+ (DevicesCurrentTemperature_EGS_G2*)eventDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andEventCode:(NSString*)eventCode{
    
    DevicesCurrentTemperature_EGS_G2 *deviceEGSG2 = [DevicesCurrentTemperature_EGS_G2
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceEGSG2.occuranceTimeEventStr = occuranceTime;
    deviceEGSG2.eventCodeStr = eventCode;
    
    return deviceEGSG2;
    
}


@end
